package com.classes.constants;

import java.nio.ByteBuffer;

import com.classes.constants.logic.Constants;

public class ConstantsContext implements Constants {

    private Constants constant;

    public ConstantsContext(Constants constant) {
        this.constant = constant;
    }

    public ConstantsContext(int tag) {
        this(ConstantsUtils.getConstantsInstance(tag));
    }


    @Override
    public void parse(ByteBuffer buffer) {
        constant.parse(buffer);
    }

    public Constants getConstant() {
        return constant;
    }

    public void setConstant(Constants constant) {
        this.constant = constant;
    }

    @Override
    public String getContent() {
        return constant.getContent();
    }


}
